package com.example.myapp

import android.app.Activity
import android.appwidget.AppWidgetProvider
import android.os.Bundle
import android.util.Log

/**
 * @author weng
 * @date 2022/9/3 14:21
 * @describe
 */
class SecondActivity : Activity() {
    private  val TAG = "SecondActivity"
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_second)
        Log.e("tag","SecondActivity---onCreate")
    }

    override fun onStart() {
        super.onStart()
        Log.e("tag","SecondActivity---onStart")
    }

    override fun onResume() {
        super.onResume()
        Log.e("tag","SecondActivity---onResume")

    }

    override fun onRestart() {
        super.onRestart()
        Log.e("tag","SecondActivity---onRestart")

    }

    override fun onPause() {
        super.onPause()
        Log.e("tag","SecondActivity---onPause")

    }

    override fun onStop() {
        super.onStop()
        Log.e("tag","SecondActivity---onStop")

    }

    override fun onDestroy() {
        super.onDestroy()
        Log.e("tag","SecondActivity---onDestroy")

    }

    override fun onRestoreInstanceState(savedInstanceState: Bundle) {
        super.onRestoreInstanceState(savedInstanceState)


    }

    override fun onSaveInstanceState(outState: Bundle) {
        super.onSaveInstanceState(outState)
         outState.putString(TAG,TAG)
    }

}